<?php

class Exam_Model_DbTable_Faqs extends Engine_Db_Table {
    protected $_rowClass = 'Exam_Model_Faq';
    public function getFaqById($faq_id) {
        $table = Engine_Api::_()->getDbTable('faqs', 'exam');
        $select = $table->select(Zend_Db_Table::SELECT_WITH_FROM_PART)
                        ->setIntegrityCheck(false);
        $select->where('faq_id = ?', $faq_id);
        return $table->fetchRow($select);
    }
}